package com.avalon.erp.addon.pet.service.shop;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.service.AbstractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class CommodityTypeService extends AbstractService {
    @Override
    public String getServiceName() {
        return "pet.commodity.type";
    }

    @Override
    public String getLabel() {
        return "商品类型"; // 表示商品可以由狗，猫等适合
    }

    private final Field petBigTypeId = Fields.createMany2one("宠物类型", "pet.big.type");
    private final Field petBigTypeName = Fields.createString("宠物大类型名");
    private final Field commodityId = Fields.createMany2one("商品", "pet.commodity");
    private final Field petSmallTypeId = Fields.createMany2one("宠物类型", "pet.small.type");
    private final Field petSmallTypeName = Fields.createString("宠物小类型名");
}
